package cn.ggsaas.user.service;

import cn.ggsaas.user.pojo.SysRole;
import cn.ggsaas.user.mapper.SysRoleMapper;
import cn.ggsaas.user.api.SysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.Service;

import java.util.List;

/**
 * <p>
 * 作业系统的角色表 服务实现类
 * </p>
 *
 * @author ggsaas-MpGenerator
 * @since 2020-09-22
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService {
    @Override
    public List findRolesByUserId(Long userId) {
        return baseMapper.listRolesByUserId(userId);
    }
}
